<html>
<head>
    <title>heatmap</title>
    <style>
        body{
            margin: 0;
            padding: 0;
        }
        .example-1{
            position: absolute;
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
            margin: auto;
            border:5px red solid;
            background: aqua;
        }
    </style>
</head>
<body>

<div class="example-1">
    <button onclick="printLog('test click')">测试按钮</button>
</div>

<script>

    //页面加载完成，回调Android的方法
    function ready(){
        regcallBack.ready();
    };

    function printLog(msg){
        console.log(msg)
        regcallBack.printLog(msg)
    }

    function javaCallJs(msg){
        alert(msg);
    }

    window.onload = function() {
        ready();
        printLog("加载完成！");

    };

    /**
     * 由ios主动调用
     * @param encrypt
     */
    function retEncryptHome(json) {
        console.log("获取的Json： " + json)
        printLog(json);
    }

</script>
</body>

</html>